package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the vroute database table.
 * 
 */
@Entity
@NamedQuery(name="Vroute.findAll", query="SELECT v FROM Vroute v")
public class Vroute implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private VroutePK id;

	//bi-directional many-to-one association to Route
	@ManyToOne
	@JoinColumn(name="r_name",insertable=false, updatable=false)
	private Route route;

	//bi-directional many-to-one association to View
	@ManyToOne
	@JoinColumn(name="v_name",insertable=false, updatable=false)
	private View view;

	public Vroute() {
	}

	public VroutePK getId() {
		return this.id;
	}

	public void setId(VroutePK id) {
		this.id = id;
	}

	public Route getRoute() {
		return this.route;
	}

	public void setRoute(Route route) {
		this.route = route;
	}

	public View getView() {
		return this.view;
	}

	public void setView(View view) {
		this.view = view;
	}

}